<template>
  <div class="common-layout">
    <el-container>
    <!-- 头部组件 -->
      <el-header>
        <Hader />
      </el-header>
      <el-container>
        <el-scrollbar>
          <Nav />
        </el-scrollbar>
          <!-- 中间内容显示组件 -->
        <el-main>
          <router-view></router-view>
          
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup lang="ts">
import Hader from "@/components/Hader.vue";
import Nav from "@/components/Nav.vue";
import { RouterView } from "vue-router";

</script>

<style lang="scss" scoped>
.common-layout {
  .el-container {
    .el-header {
        height: 70px;
      background-color: #409eff;
    }
    .el-main {
      height:calc(100vh - 70px);
    }
  }
}

</style>
